package cn.simple.manager.web;

import cn.simple.manager.Repository.BannerResponsitory;
import cn.simple.manager.todo.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/banner")
public class BannerController {

    @Autowired
    private BannerResponsitory bannerResponsitory;

    @RequestMapping("/hotBanner")
    public ResponseEntity hotBanner(){
        return ResponseEntity.ok(bannerResponsitory.selectHotWechatOrBanner());
    }
}
